import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

let routes=[
    /*{
        path: '/index',
        name: '平台',
        component: () => import('@/page/index.vue'),
        meta: {
            compo: 'index',
        }
    },*/
    {
        path: '/blank',
        name: 'blank',
        component: () => import('@/page/blank.vue'),
        meta: {
            compo: 'blank',
        }
    },
    {
        path: '/home',
        name: '首页',
        component: () => import('@/page/home.vue'),
        meta: {
            compo: 'home',
        }
    },
    {
        path: '/login',
        name: '登录',
        component: () => import('@/page/login.vue'),
        meta: {
            compo: 'login',
        }
    },
    {
        path: '/app',
        name: '应用管理',
        component: () => import('@/page/app/app_main.vue'),
        meta: {
            compo: 'app_main',
        }
    },
    {
        path: '/menu',
        name: '菜单管理',
        component: () => import('@/page/menu/menu_main.vue'),
        meta: {
            compo: 'menu_main',
        }
    },
    {
        path: '/auth',
        name: '权限管理',
        component: () => import('@/page/auth/auth_main.vue'),
        meta: {
            compo: 'auth_main',
        }
    },
    {
        path: '/role',
        name: '角色管理',
        component: () => import('@/page/role/role_main.vue'),
        meta: {
            compo: 'role_main',
        }
    },
    {
        path: '/org',
        name: '组织管理',
        component: () => import('@/page/org/org_main.vue'),
        meta: {
            compo: 'org_main',
        }
    },
    {
        path: '/user',
        name: '用户管理',
        component: () => import('@/page/user/user_main.vue'),
        meta: {
            compo: 'user_main',
        }
    },
    {
        path: '/login_log',
        name: '登录日志',
        component: () => import('@/page/login_log/login_log_main.vue'),
        meta: {
            compo: 'login_log_main',
        }
    },
]
Vue.prototype.$routes = routes

export default new Router({
    mode: 'history',
    base: '',
    routes: routes
})

